<template>
  <div class="avatar-wrap" :style="{ width, height }">
    <img :src="src" />
  </div>
</template>

<script setup>
defineProps({
  width: {
    type: String,
    default: "100px",
  },
  height: {
    type: String,
    default: "100px",
  },
  src: {
    type: String,
    require: true,
    default:
      "https://tse1-mm.cn.bing.net/th/id/OIP-C.WHOutBywZc1cziwJjb6b9AAAAA?pid=ImgDet&rs=1",
  },
});
</script>

<style lang="scss" scoped>
.avatar-wrap {
  border-radius: 100%;
  overflow: hidden;
  border: 4px solid #efefef;
  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
</style>
